* {
  box-sizing: border-box;
  outline: none;
  padding: 0;
  margin: 0;
}

html {
  font-size: calc(100vw / 750 * 100);
}
$text-color: #323233;
$color-info: #1989fa;
$color-danger: #ee0a24;
$color-warning: #ff976a;
$color-disable: #c8c9cc;
$color-grey: #646566;
$color-grey-light: #969799;
$color-link: #576b95;

$border-color: #dcdee0;
$border-color-light: #ebedf0;

$background-color: #f7f8fa;
$background-color-light: #fafafa;

body {
  color: $text-color;
  font-family:
    PingFang SC,
    Lantinghei SC,
    Microsoft Yahei,
    Hiragino Sans GB,
    Microsoft Sans Serif,
    WenQuanYi Micro Hei,
    sans-serif;
  margin: 0;
  height: 100vh;
  overflow-x: hidden;
  background-color: $background-color-light;
}

li,
ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

a:active,
a:hover {
  outline: 0;
}

[flex] {
  display: flex;
}

[flex~="main:center"] {
  justify-content: center;
}

[flex~="cross:center"] {
  align-items: center;
}

[flex~="main:justify"] {
  justify-content: space-between;
}

[flex~="main:left"] {
  justify-content: flex-start;
}

[flex~="main:right"] {
  justify-content: flex-end;
}

[flex-box="0"],
[flex] img {
  flex-shrink: 0;
}

[flex-box="1"] {
  flex-shrink: 1;
}


#app {
  min-height: 100vh;
  font-size: 14px;
}

.color {
  &--danger {
    color: $color-danger;
  }

  &--info {
    color: $color-info;
  }

  &--warning {
    color: $color-warning;
  }

  &--success {
    color: $color-info;
  }
}

@media screen and (min-width: 414px) {
  html {
    // 这里加权重是因为 amfe-flexible 通过行内样式设置了根字体
    font-size: 40Px !important;
  }
}

@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
  }
}
